var express = require('express');
var router = express.Router();

var data = [
    {
        plane_name: '计划1',
        customer_name: '友宝',
        exposure_num: '200',
        click_num: '100',
        click_percent: '50.00%',
        click_price: '0.4',
        consume: '600',
        day_budget: '2000',
        verify_status: '审核通过'
    },
    {
        plane_name: '计划2',
        customer_name: '德班总管',
        exposure_num: '300',
        click_num: '100',
        click_percent: '33.33%',
        click_price: '0.4',
        consume: '800',
        day_budget: '2000',
        verify_status: '审核通过'
    },
    {
        plane_name: '计划3',
        customer_name: '小熊',
        exposure_num: '--',
        click_num: '--',
        click_percent: '--',
        click_price: '0.4',
        consume: '600',
        day_budget: '2000',
        verify_status: '审核中'
    },
    {
        plane_name: '计划4',
        customer_name: '天创',
        exposure_num: '--',
        click_num: '--',
        click_percent: '--',
        click_price: '0.4',
        consume: '700',
        day_budget: '2000',
        verify_status: '审核中'
    },
    {
        plane_name: '计划5',
        customer_name: '视窗',
        exposure_num: '--',
        click_num: '--',
        click_percent: '--',
        click_price: '0.4',
        consume: '600',
        day_budget: '2000',
        verify_status: '审核拒绝'
    }
];
// http://localhost:3000/api/ad?
// page=1&size=50&name=&status=0&time=2017-12-29+-+2017-12-29
router.get('/', function (req, res, next) {
    var rst = {
        code: 10004,
        msg: 'success',
        data: {
            current_page: 1,
            total: 5,
            per_page: 10,
            data: data
        }
    };
    res.json(rst);
});

module.exports = router;